import request from '@/utils/request'

// 查询小说列表
export function listNovelTitle(query) {
  return request({
    url: '/manage/novelTitle/list',
    method: 'get',
    params: query
  })
}

// 查询小说详细
export function getNovelTitle(id) {
  return request({
    url: '/manage/novelTitle/' + id,
    method: 'get'
  })
}

// 查询小说内容
export function getNovelCon(id) {
  return request({
    url: '/manage/novelTitle/novelCon/' + id,
    method: 'get'
  })
}

// 新增小说
export function addNovelTitle(data) {
  return request({
    url: '/manage/novelTitle',
    method: 'post',
    data: data
  })
}

// 修改小说
export function updateNovelTitle(data) {
  return request({
    url: '/manage/novelTitle',
    method: 'put',
    data: data
  })
}

// 删除小说
export function delNovelTitle(id) {
  return request({
    url: '/manage/novelTitle/' + id,
    method: 'delete'
  })
}
